package org.example.springboot.DTO;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 借阅记录数据传输对象
 */
@Data
@Schema(description = "借阅记录数据传输对象")
public class BorrowDTO {
    
    @Schema(description = "借阅记录ID")
    private Long id;
    
    @Schema(description = "图书ID")
    @NotNull(message = "图书ID不能为空")
    private Long bookId;
    
    @Schema(description = "借阅天数")
    private Integer days;
} 